package com.pmms.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName order_details
 */
@TableName(value ="order_details")
@Data
public class OrderDetails implements Serializable {
    /**
     * 主键
     */
    @TableId
    private String orderDetailId;

    /**
     * 外键，关联到 orders 表的 order_id   1对多
     */
    private String orderId;

    /**
     * 外键，关联到 Products 表的 product_id
     */
    private String productId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 子总价
     */
    private Double subtotal;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}